package com.burgeon.backend.SHOP.mappers;

import com.burgeon.backend.SHOP.entity.Order;
import com.burgeon.backend.SHOP.entity.presell.Earnest;
import com.burgeon.backend.SHOP.entity.presell.EarnestVO;
import com.burgeon.backend.SHOP.entity.presell.Presell;

import java.util.List;

public interface AppPresellMapper {

    String findImg(String account);

    List<EarnestVO> earnestAll(String cTime);

    Integer upEarnestRefund(String id,String code,String state);

    Earnest getEarnestDataById(String id);

    Integer upPresellState(String id,String state);

    Integer upOrderAddressById(String id,String receiver,String phone,String address,String mailFee);

    Order findOrderByPid(String id);

    EarnestVO OrderConfigData(String id);

    List<EarnestVO> presellOrderData(String uid,String token);

    String findEarnestResult(String id);

    Integer upEarnestState(String id,String erpId,String state);

    Earnest getEarnestDataByCode(String code);

    Integer createEarnest(Earnest earnest);

    Presell getDataById(String id);

    String getAgreement(String token);

    List<Presell> getData(String token);

}
